/**
 * <p>
 * 弹窗配置
 *
 * @Author：Roy
 * @Description：能源数据
 * @Date：Create by 2023-12-05 11:48:22
 */
const popConfig = {
  'energy-data': {
    'energy-data-add': {
      popTitle: '新增能源数据',
      popType: 'OperateEnergyData',
      visible: true,
      popConfig: {
        width: '50%',
        destroy: true,
        popType: 'add'
      }
    },
    'energy-data-edit': {
      popTitle: '编辑能源数据',
      popType: 'OperateEnergyData',
      visible: true,
      popConfig: {
        width: '50%',
        footerConfirmBtnName: '确认并重新计算关联数据',
        destroy: true
      }
    },
    'energy-data-detail': {
      popTitle: '详情',
      popType: 'OperateEnergyDataDetail',
      visible: true,
      popConfig: {
        width: '50%',
        destroy: true
      }
    },
    'energy-data-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '确认删除XXX的配置信息？',
      splitProp: ['deviceName', 'deviceCode'],
      paramsProp: { id: 'id' },
      path: 'energyData.deleteById'
    },
    'energy-data-import': {
      popTitle: '导入',
      popType: 'AddFile',
      visible: true,
      popConfig: {
        width: '50%',
        hideFooterBtn: true,
        // 上传接口
        upLoadPath: '/energy-carbon/ecp-admin/energyData/upload',
        // 模板下载参数
        tplName: 'energyDataRenderer'
      }
    },
    'energy-data-deleteBatch': {
      showType: 'confirm',
      dataType: 'multipleList',
      confirmHeader: '提示',
      confirmContent: '确认批量删除XXX的能源数据？',
      splitProp: ['deviceName', 'deviceCode'],
      paramsProp: { ids: 'id' },
      path: 'energyData.batchDelete'
    }
  }
}

export default {}
export { popConfig }
